#include <bits/stdc++.h>

using namespace std;

float k_power (int power) {
	float result = 1.0;
	//cout << power << endl;
	if (power >= 0) {
		result = 1 << power;
	} else {
		for (int i = power; i < 0; i ++) {
			result /= 2.0;
		}
	}
	return result;
}
float float16_to_float32 (int a) {
	// a: 0x0000ffff
	float result = 0.0;
	int ratio = ((a >> 10) & 0x0000001f) - 15;

	result += 1.0 * k_power(ratio);
	for (int i = 0; i < 10; i ++) {
		result += ((a >> i) & 0x00000001) * k_power(ratio - 10 + i);
	}

	return result;
}

int main(int argc, char **argv) {
    int a = atoi (argv[1]);
    cout << float16_to_float32(a) << endl;
}
